﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FrameworkManapro.BusinessModel;

namespace GMAC.ReportingSystem.Business.Entities
{
    [DbProcedures(Insert = "procAccountRepresentativeInsert", Update = "procAccountRepresentativeUpdate", Delete = "procAccountRepresentativeDelete")]
    public class AccountRepresentative : BusinessEntity
    {
        /// <summary>
        /// Gets or sets the ID.
        /// </summary>
        /// <value>The ID.</value>
        [EntityPrimaryKey]
        [DbParameter(0, 1, 1)]
        public int ID { get; set; }

        /// <summary>
        /// Gets or sets the FistName.
        /// </summary>
        /// <value>The FistName.</value>
        [DbParameter(1, 2, 0)]
        public string FistName { get; set; }

         /// <summary>
        /// Gets or sets the LastName.
        /// </summary>
        /// <value>The LastName.</value>
        [DbParameter(2, 3, 0)]
        public string LastName { get; set; }

        /// <summary>
        /// Gets or sets the IdentificationNumber.
        /// </summary>
        /// <value>The IdentificationNumber.</value>
        [DbParameter(3, 4, 0)]
        public string IdentificationNumber { get; set; }

        ///<sumary>
        /// Gets or sets the Email
        /// </sumary>
        /// <value>The Email </value>
        [DbParameter(4, 5, 0)]
        public string Email { get; set; }


        ///<sumary>
        /// Gets or sets the Phone
        /// </sumary>
        /// <value>The Phone </value>
        [DbParameter(5, 6, 0)]
        public string Phone { get; set; }

        /// <summary>
        /// Gets or sets the  First Name + LastName.
        /// </summary>
        /// <value>The First Name + LastName.</value>
        [DbParameter(0, 0, 0)]
        public string Name { get; set; }


    }
    public class AccountRepresentativeCollection : List<AccountRepresentative>
    {
        public int TotalResults { get; set; }
    }
}
